<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>

	<title>分类主页</title>

</head>
<body>

<p align="center">
	<h2>分类主页</h2>
	<a href="add.html">添加页</a>
</p>
<table border="1" width="100%">
	<tr>
		<th>分类名称</th>
		<th>是否推荐</th>
		<th>操作</th>
	</tr>
	<?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr align="center">
		<td>
			|<?php echo (str_repeat("--",$vo["lev"])); echo ($vo["c_name"]); ?>
		</td>
		<td>
			<?php if($vo["isrec"] == 1): ?>是
				<?php else: ?>
				否<?php endif; ?>
		</td>
		<td>
			<a href="<?php echo U('edit','id='.$vo['id']);?>">编辑</a>
			<a href="<?php echo U('dels','id='.$vo['id']);?>">删除</a>
		</td>
	</tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>

</body>
</html>